import  Request  from "../request";

export default {
    //角色列表
    getRoles: (data: Object) => Request.get('/api/system/role', data),//获取角色列表
    editRole: (data: Object) => Request.post('/api/system/editRole', data),//修改角色状态
    addRole: (data: Object) => Request.post('/api/system/addRole', data),//添加角色
    removeRole: (data: Object) => Request.post('/api/system/deleteRole', data),//删除角色
    // 账号列表
    getAccounts: (data: Object) => Request.get('/api/system/account', data),//获取账号列表
    editAccount: (data: Object) => Request.post('/api/system/editAccount', data),//修改角色状态
    addAccount: (data: Object) => Request.post('/api/system/addAccount', data),//添加角色
    removeAccount: (data: Object) => Request.post('/api/system/deleteAccount', data),//删除角色

}